package com.lmb.mapper;

import com.lmb.bean.ResidentEmergencies;
import com.lmb.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ResidentEmergenciesDao {
    
    int add(@Param("re") ResidentEmergencies residentEmergencies);
    
    int del(@Param("id")Integer id);
    
    int edit(@Param("re") ResidentEmergencies residentEmergencies);
    
    ResidentEmergencies one(@Param("id")Integer id);
    
    List<ResidentEmergencies> all(@Param("re") ResidentEmergencies residentEmergencies);
    
    int pageCount(@Param("re") ResidentEmergencies residentEmergencies);
    
    List<ResidentEmergencies> page(@Param("page") Page page, @Param("re") ResidentEmergencies residentEmergencies);

    List<ResidentEmergencies> findAll();
}
